public class Factory {
    public static Product createProduct(String productType){
        Product product = null;
        switch(productType){
            case "ConcreteProduct1":
                product = new ConcreteProduct1();
                break;
            case "ConcreteProduct2":
                product = new ConcreteProduct2();
                break;
        }
        return product;
    }
}
